package com.example.feign.service;

import com.example.feign.service.fallback.FeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "provider",fallback = FeignServiceFallback.class)
//@FeignClient(value = "provider",url = "http://127.0.0.1:9001")

public interface FeignService {

    @GetMapping("/provider/test/{message}")
    String getProviderTest(@PathVariable("message") String message);

    @GetMapping(value = "/provider/config/{message}")
    String getProviderConfigTest(@PathVariable("message") String message);

    @GetMapping("/provider/sentinel/test/{message}")
    String providerSentinelTest(@PathVariable("message") String message);
}
